<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:p="http://primefaces.org/ui">

<h:panelGrid id="acoes" columns="2" cellspacing="2">
	<p:commandButton id="btnVisualizar"
		disabled="#{pManagedBean.isBtnDownloadDisabled}"
		value="#{i18n['relatorio.visualizar']}" ajax="false"
		action="#{pManagedBean.doVisualizarRelatorio}"
		onclick="this.form.target='_blank'" />

	<p:commandButton id="btnDownload" value="#{i18n['relatorio.download']}"
		disabled="#{pManagedBean.isBtnDownloadDisabled}"
		title="#{i18n['relatorio.download']}" ajax="false">
		<p:fileDownload value="#{pManagedBean.relatorio}" />
	</p:commandButton>
</h:panelGrid>
</html>